<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 4.01 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ page language="java" pageEncoding="UTF-8"%>
<%@ include file="/pages/safeai/jsp/common/taglibs.jsp"%>
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<title>降价通知查询</title>
<link href="${ctx}/css/safeai/together.css" rel="stylesheet" type="text/css" />
<link type="text/css" rel="StyleSheet" media="all" href="${ctx}/css/combined.css">
<link type="text/css" rel="StyleSheet" media="all" href="${ctx}/css/global.css">
<script type="text/javascript" src="${ctx}/js/calendar.js"></script>
<script type="text/javascript" src="${ctx}/js/calendar-zh.js"></script>
<script type="text/javascript" src="${ctx}/js/calendar-setup.js"></script>
<script language="javascript">  
	function gotoPage(pageOffset, pageSize) {
			var form = document.getElementsByTagName("form")[0];
			form.elements["pager.offset"].value = pageOffset;
			form.elements["pageSize"].value = pageSize;
			form.submit();
	}
</script>
  </head>
  
  <body>
<form action="${ctx}/price/listpricenotifyMessage.do" method="post">
<input type="hidden" id="itsMethod" name="method" value="query"/>
<table align="center" width="98%">
	<tr>
    	<th colspan="4" height="25px">降价通知管理</th>
    </tr>
     <tr>
        <td class="td_01">起始时间：</td>
        <td class="td_04">
        	<input name="startimeStr" id="created:star" value="${startimeStr}"  type="text" / style="background-image:url(${ctx}/images/cal.gif); background-repeat:no-repeat; background-position:left;padding-left:25px; cursor:hand;width:176px"> 
			<script type="text/javascript">
		    	Calendar.setup({
		
		        firstDay       :    0,                  // first day of the week
		        inputField     :    "created:star",     // id of the input field
		        button         :    "created:star_trigger_c",  // trigger for the calendar (button ID)
		        align          :    "Bl",           // alignment (defaults to "Bl")
		        singleClick    :    true,
		             ifFormat       : "%y/%m/%d"      // our date only format
		         });
            </script>
        </td>
        <td class="td_01">终止时间：</td>
        <td class="td_04">
        	<input name="endtimeStr" id="created:end" value="${endtimeStr}"  type="text" / style="background-image:url(${ctx}/images/cal.gif); background-repeat:no-repeat; background-position:left;padding-left:25px; cursor:hand;width:176px"> 
			<script type="text/javascript">
		    	Calendar.setup({
		
		        firstDay       :    0,                  // first day of the week
		        inputField     :    "created:end",     // id of the input field
		        button         :    "created:end_trigger_c",  // trigger for the calendar (button ID)
		        align          :    "Bl",           // alignment (defaults to "Bl")
		        singleClick    :    true,
		             ifFormat       : "%y/%m/%d"      // our date only format
		         });
            </script>
        </td>
    </tr>
     <tr>
    	<td colspan="4" align="center">
        <input type="submit"  class="btn" value="查询" />
        </td>
    </tr>
</table>
<br />
<logic:notEmpty name="Pricenotify" property="records">
<table align="center" width="98%">
    <tr>
    	<th class="td_01" height="25px" nowrap>通知商品</th>
      	<th class="td_01">电话</th>
      	<th class="td_01" nowrap>E-mail</th>
      	<th class="td_01" nowrap>时间</th>
      	<th class="td_01" nowrap>附言</th>
      	<th class="td_01" nowrap>操作</th>
   </tr>
   <logic:iterate id="list" name="Pricenotify" property="records">
	   <tr>
	    	<td class="td_03" nowrap>${list.product}</td>
	        <td class="td_03">${list.phone}</td>
	      	<td class="td_03" nowrap>${list.email}</td>
	      	<td class="td_03" nowrap><bean:write name="list" property="time" format="yyyy-MM-dd"/></td>
	      	<td class="td_03" nowrap>${list.comment}</td>
	        <td class="td_03"><a href="${ctx}/price/listpricenotifyMessage.do?method=del&id=${list.id}" onclick="return confirm('是否删除!')">删除</a></td>
	  </tr>
  </logic:iterate>
  <tr>
  	<td align="right" colspan="7"><%@ include file="/pages/safeai/jsp/common/page.jsp"%></td>
  </tr>
</table>
</logic:notEmpty>
</form>
</body>
</html>
